home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.11.gz / 1994.11 / 000126_root@astrohp1.ulb.ac.be_Sat Nov 19 06:39:04 1994.msg < prev    next >
Internet Message Format  |  1994-11-30  |  3KB

  1. Received: from resu1.ulb.ac.be by cs.umb.edu with SMTP id AA25315
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Sat, 19 Nov 1994 06:39:04 -0500
  3. Received: from astrohp1.ulb.ac.be by resu1.ulb.ac.be (8.6.8.1/2.18.ap)
  4.         id MAA07364; Sat, 19 Nov 1994 12:39:02 +0100
  5. From: root@astrohp1.ulb.ac.be
  6. Received: by astrohp1.ulb.ac.be (1.38.193.4/ULB.920908)
  7.     id AA04864; Sat, 19 Nov 1994 12:39:44 +0100
  8. Message-Id: <9411191139.AA04864@astrohp1.ulb.ac.be>
  9. Subject: Problem with yytext
  10. To: tex-k@cs.umb.edu
  11. Date: Sat, 19 Nov 94 12:39:44 MET
  12. Cc: root@astrohp1.ulb.ac.be
  13.  
  14. Institut d'Astronomie et d'Astrophysique
  15. CP-226, Universite Libre de Bruxelles
  16. Campus de la Plaine, boulevard du triomphe
  17. B-1050 Brussels
  18. Phone:    +32(2)650 3571  ***  Fax: +32(2)650 4226
  19. Mailer: Elm [revision: 70.85]
  20.  
  21. Installation of TeX on HP 730 with
  22.    OS : HP-UX 9.03
  23.    CC : cc (HP92453-01 A.09.69 HP C Compiler  (ANSI C)
  24.  
  25. web2c-6.1 retrieved from ftp.tex.ac.uk
  26.  
  27. Compilation of <web2c/lex.yy.c> according to
  28.  
  29.    cc -I./../lib -I../.. -g -Aa -D_HPUX_SOURCE  -c lex.yy.c
  30.  
  31. leads to the following error:
  32.  
  33. conflicts: 1 shift/reduce
  34. cc: "web2c.h", line 55: error 1584: Inconsistent type declaration: "yytext".
  35. cc: "lex.yy.c", line 332: warning 604: Pointers are not assignment-compatible.
  36. cc: "lex.yy.c", line 332: warning 563: Argument #2 is not the correct type.
  37.  
  38. Stop.
  39.  
  40. Stop.
  41.  
  42. Hereunder some information to help you locate the problem.
  43.  
  44.       Guy Paulus
  45.  
  46. From <web2c/web2c.h>:
  47. =====================
  48. /* configure figures out how to declare the yytext variable. */
  49. /* DECLARE_YYTEXT */
  50. extern char *yytext;     <-----------------------------------------  line 55
  51. /* extern char yytext[]; */
  52.  
  53. NOTES: 0) I have modified <web2c.h> according to <web2c.yytext.help>
  54.       (see below)
  55.        1) the SAME ERROR occurs if I select "extern char yytext[];"
  56.        2) with my C compiler, "char" is "signed" by default
  57.  
  58. From <web2c/lex.yy.c>:
  59. ======================
  60. case 69:
  61. { (void) strcpy (last_id, yytext);    <----------------------------  line 332
  62.           l_s = search_table (last_id);
  63.           return
  64.                     last_tok = (l_s == -1 ? undef_id_tok : sym_table[l_s].typ);
  65.         }
  66. break;
  67.  
  68. From <lib/c-auto.h>:
  69. ====================
  70. /* Define as the proper declaration for yytext.  */
  71. /* #undef YYTEXT_POINTER */
  72. #if YYTEXT_POINTER
  73. #define DECLARE_YYTEXT extern char *yytext;
  74. #else
  75. #define DECLARE_YYTEXT extern char yytext[];
  76. #endif
  77.  
  78. From <web2c.yytext.help>:
  79. =========================
  80. (retrieved from ftp.tex.ac.uk:tex-archive/systems/web2c/)
  81. To: trotter@erdos.la.asu.edu
  82. Subject: web2c lossage
  83.  
  84.     In file included from web2c.lex:4:
  85.     web2c.h:54: conflicting types for `yytext'
  86.     lex.yy.c:524: previous declaration of `yytext'
  87.     
  88. Change the line that says `DECLARE_YYTEXT' (or something like that) in
  89. web2c-6.1/web2c/web2c.h to either
  90.  
  91. extern char yytext[];
  92.  
  93. or
  94.  
  95. extern char *yytext;
  96.  
  97. whichever one works.